package com.feel.mall.goodsservice;

import com.feel.mall.common.config.WhiteListConfig;
import com.feel.mall.common.exception.FeelException;
import com.feel.mall.common.service.GoodsService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Author: 刘永钦
 * @Description:
 */
@SpringBootTest
public class MyTest02 {
    @Autowired
    private GoodsService goodsService;

    @Autowired
    private WhiteListConfig whiteListConfig;

    @Test
    void test01() throws FeelException {
        // Goods goods = new Goods(506, "123456", "1", "1", new BigDecimal("1"), new BigDecimal("1"), new BigDecimal("1"), "1", "1", 1, 1, 4, 1f, 1, null, null);
        // goodsService.insert(goods);
    }
    @Test
    void test02() {
        whiteListConfig.getRules().forEach(System.out::println);
    }
    @Test
    void test03() {
        String reg = "^/good/.*";
        String path = "/good9/2";
        System.out.println(path.matches(reg));
    }
}
